# rosdep recover script
# @author: ncnynl 
# @website: ncnynl.com 


# sources_list=~/tools/rosdep/old/sources_list.py
# init_url=~/tools/rosdep/old/__init__.py
# support_url=~/tools/rosdep/old/gbpdistro_support.py
# rep3_url=~/tools/rosdep/old/rep3.py
# github_url=~/tools/rosdep/old/github.py

python_version="python2.7"
#python_version="python3"

sources_list=/usr/lib/$python_version/dist-packages/rosdep2/sources_list.py
init_url=/usr/lib/$python_version/dist-packages/rosdistro/__init__.py
support_url=/usr/lib/$python_version/dist-packages/rosdep2/gbpdistro_support.py
rep3_url=/usr/lib/$python_version/dist-packages/rosdep2/rep3.py
github_url=/usr/lib/$python_version/dist-packages/rosdistro/manifest_provider/github.py


cp -r $sources_list"_bk" $sources_list
cp -r $init_url"_bk" $init_url
cp -r $support_url"_bk" $support_url
cp -r $rep3_url"_bk" $rep3_url
cp -r $github_url"_bk" $github_url